PowerTCP SSH and SFTP for .NET exposes an interface that can be used in COM environments, including VB6. The licensing model for COM now works similar to .NET Standard licensing.
First, ensure a license is activated (see License Activation).
- With an activated license present, run your application so that a licensed component’s constructor is called (or call ComLicense.Create when your application starts).
- The runtime license is created and saved to Dart.Ssh.lic beside Dart.Ssh.dll in the application's directory. The runtime license is bound to the application’s assembly name and should be distributed with your application.
- If ComLicense.Create was used, remove it from your code.
- If distributing Dart.Ssh.lic is undesirable (when using a build server, for example, or to minimize the size of your distribution), then a runtime license string can be used instead:
- Use any text editor to open the Dart.Ssh.lic file located in the output directory.
- Copy the runtime license string from the first line.
- In your application's code, paste the runtime license string in between the quotes of License.Set, as follows:
ComLicense.Set("RuntimeLicenseString");
Deployment
The process for deployment for use under COM is as follows:
- Deploy your compiled project as appropriate for your environment.
- If ComLicense.Set is not used, deploy the Dart.Ssh.lic runtime license file alongside your application's executable.
- Deploy the Dart.Ssh.dll to the target machine. Use the Microsoft regasm.exe utility to COM register the assembly. For example:
regasm Dart.Ssh.dll /codebase /tlb
This process is only necessary when employing the COM interface to a Dart component. .NET applications should use the native .NET class interface, which embeds the licensing resource in the application, as described on the "Licensing and Trial Operation" page.
See Also